/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package server.process;

import java.util.Comparator;
import server.entity.Photo;

/**
 *
 * @author Hoang
 */
public class PhotoTotalViewComparator  implements Comparator<Photo> {

    public int compare(Photo o1, Photo o2) {
        return (-1)*(o1.getCommentCollection().size()-o1.getCommentCollection().size());
    }

}
